package ygg.exporter.swf.tag
{
	import j.sus2maj7.encoding.*;
	import j.sus2maj7.context.*;
	
	import flash.filesystem.*;
	import flash.utils.*;
	
	import ygg.exporter.swf.*;
	
	import ygg.encoding.swf.tag.*;
	import ygg.encoding.swf.tag.object.*;
	import ygg.encoding.swf.structure.*;
	import ygg.encoding.swf.abc.*;
	import ygg.encoding.swf.abc.object.*;
	
	public class DefineBinaryDataExporter extends TagExporter
	{
		public function DefineBinaryDataExporter()
		{
			super();
		}
		
		override public function export(o:*, context:IContext = null):void
		{
			var b:DefineBinaryData = o as DefineBinaryData;
			writeBytesToFile(b.data.ba,
				context.vars.binaryDir.resolvePath('binary_' + b.tagId +'.bin')
				);
		}
	}
}